package com.uzai.console.mapper;

import com.uzai.console.entity.AddFanChannelDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AddFanChannelDetailMapper {
    int deleteById(@Param("id") Long id, @Param("merId") Long merId);

    int deleteByAddFanChannelId(@Param("addFanChannelId") Long id, @Param("merId") Long merId);

    int insert(AddFanChannelDetail record);

    /**
     * 批量添加
     * @param list
     * @return
     * @return
     */
    int batchAdd(List<AddFanChannelDetail> list);

    int insertSelective(AddFanChannelDetail record);


    AddFanChannelDetail selectById(@Param("id") Long id, @Param("merId") Long merId);

    int updateByIdSelective(AddFanChannelDetail record);

    int updateById(AddFanChannelDetail record);

    List<AddFanChannelDetail> selectByAddFanChannelId(@Param("addFanChannelId") Long id, @Param("merId") Long merId);

}